package
{
	import components.BullerLayer;
	import components.EnergyShow;

	public class Global
	{
		
		public static var g_energyShow:EnergyShow;
		public static var g_bullerLayer:BullerLayer;
		
		public static var roleBackStatus:Object = new Object;
		
		public function Global()
		{
		}
		
		public static function setBackStatus(id:String,value:int):void
		{
			roleBackStatus[id] = value;
			if(value == 1)
			{
				for each(var key:int in roleBackStatus)
				{
					if(key == 0)
						return;
				}
				g_energyShow.regainEnergy();
			}
		}
		
	}
}